css shadows: Cache blured masks for the corners of outset shadows
authorAlexander Larsson <alexl@redhat.com>
Tue, 15 Sep 2015 14:02:10 +0000 (16:02 +0200)
committerAlexander Larsson <alexl@redhat.com>
Tue, 15 Sep 2015 14:05:50 +0000 (16:05 +0200)
commitd8d0188e86b0d06b50a8ac5656c840c2911112ac
tree951c05483301662819d9d5083c3b9aeb493b84c9
parentf31e20247ff62e815481fcceaf457943e7822a9c
css shadows: Cache blured masks for the corners of outset shadows

A lot of time was spend rendering the shadows on windows with CSD, in
particular the corner pieces, since they are the largest parts. This
patch catches this particular case and caches the pre-rendered blur
masks.

This makes the shadow code go from 25% to 8% of the time when resizing
gtk3-demo.
gtk/gtkcssshadowvalue.c